const getters = {
  // 子模块state数据： this.$store.state.模块名.xxx
  // state是根模块的state，存储着子模块state数据
  // 【通过根getters建立对子模块state数据的快捷访问】
  // mapGetters(['token']) => state.user.token
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  token: state => state.user.token,
  avatar: state => state.user.userInfo.staffPhoto,
  name: state => state.user.userInfo.username,
  userId: state => state.user.userInfo.userId
}
export default getters
